package com.ktgj.customer.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.customer.mapper.CaseMalfeasanceLiableMapper;
import com.ktgj.customer.domain.CaseMalfeasanceLiable;
import com.ktgj.customer.service.ICaseMalfeasanceLiableService;

/**
 * 渎失职责任Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-05-25
 */
@Service
public class CaseMalfeasanceLiableServiceImpl implements ICaseMalfeasanceLiableService 
{
    @Autowired
    private CaseMalfeasanceLiableMapper caseMalfeasanceLiableMapper;

    /**
     * 查询渎失职责任
     * 
     * @param caseMalfeasanceLiableId 渎失职责任ID
     * @return 渎失职责任
     */
    @Override
    public CaseMalfeasanceLiable selectCaseMalfeasanceLiableById(Long caseMalfeasanceLiableId)
    {
        return caseMalfeasanceLiableMapper.selectCaseMalfeasanceLiableById(caseMalfeasanceLiableId);
    }

    /**
     * 查询渎失职责任列表
     * 
     * @param caseMalfeasanceLiable 渎失职责任
     * @return 渎失职责任
     */
    @Override
    public List<CaseMalfeasanceLiable> selectCaseMalfeasanceLiableList(CaseMalfeasanceLiable caseMalfeasanceLiable)
    {
        return caseMalfeasanceLiableMapper.selectCaseMalfeasanceLiableList(caseMalfeasanceLiable);
    }

    /**
     * 新增渎失职责任
     * 
     * @param caseMalfeasanceLiable 渎失职责任
     * @return 结果
     */
    @Override
    public int insertCaseMalfeasanceLiable(CaseMalfeasanceLiable caseMalfeasanceLiable)
    {
        return caseMalfeasanceLiableMapper.insertCaseMalfeasanceLiable(caseMalfeasanceLiable);
    }

    /**
     * 修改渎失职责任
     * 
     * @param caseMalfeasanceLiable 渎失职责任
     * @return 结果
     */
    @Override
    public int updateCaseMalfeasanceLiable(CaseMalfeasanceLiable caseMalfeasanceLiable)
    {
        return caseMalfeasanceLiableMapper.updateCaseMalfeasanceLiable(caseMalfeasanceLiable);
    }

    /**
     * 批量删除渎失职责任
     * 
     * @param caseMalfeasanceLiableIds 需要删除的渎失职责任ID
     * @return 结果
     */
    @Override
    public int deleteCaseMalfeasanceLiableByIds(Long[] caseMalfeasanceLiableIds)
    {
        return caseMalfeasanceLiableMapper.deleteCaseMalfeasanceLiableByIds(caseMalfeasanceLiableIds);
    }

    /**
     * 删除渎失职责任信息
     * 
     * @param caseMalfeasanceLiableId 渎失职责任ID
     * @return 结果
     */
    @Override
    public int deleteCaseMalfeasanceLiableById(Long caseMalfeasanceLiableId)
    {
        return caseMalfeasanceLiableMapper.deleteCaseMalfeasanceLiableById(caseMalfeasanceLiableId);
    }
}
